home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2515 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: info.spt.net.cn!usenet
  2. From: Xu Yifeng <jafd@public.sta.net.cn>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: memory model question
  5. Date: Sun, 14 Jan 1996 14:06:18 -0800
  6. Organization: ZheJiang Securities Co.Ltd
  7. Message-ID: <30F97E5A.188B@public.sta.net.cn>
  8. References: <4d94go$sp0@cantaloupe.srv.cs.cmu.edu>
  9. NNTP-Posting-Host: ts2-6.sta.net.cn
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (Win16; I)
  14.  
  15. Bruce Maggs wrote:
  16. : Hi,
  17. : I'm compiling a C program using Borland's C++ for DOS.  It's a large
  18. : program, but doesn't use much static memory.  I've selected the
  19. : "small" memory model.  The program compiles and runs without any
  20. : problems, but the length of the .exe file that the compiler produces
  21. : is 148K.  I thought that in the small memory model the length of the
  22. : code would be limited to one segment, i.e., 64K.  I'm curious about
  23. : what's going on here.  Does the compiler automatically split my code
  24. : into two or more segments?
  25. :
  26. : Thanks,
  27. : Bruce Maggs
  28.  
  29. Hello, can you link the program with no DEBUG infomation again?
  30. or try to run program tdstrip <your exe file > to remove DEBUG
  31. information, and see if the program is still so big!
  32.  
  33. Small model program is not bigger than 128K in memory.
  34.  
  35. Good luck
  36.